import request from '@/utils/request'

export function getList(params) {
  return request({
    url: 'log/log/getlist',
    method: 'get',
    params
  })
}

export function getErrDetail(id) {
  return request({
    url: 'log/log/get?id=' + id,
    method: 'get'
  })
}

export function delAllError() {
  return request({
    url: 'log/log/delete',
    method: 'post'
  })
}

export function delAllInfo() {
  return request({
    url: 'log/log/delinfo',
    method: 'post'
  })
}

export default { getList, getErrDetail, delAllError }
